MonitorCharts = function(web){
	this.web = web;
	this.checkWeb();
};

MonitorCharts.prototype = {
		
	/* 重置样式  */	
	checkWeb:function(){
		var height = 500;
		var width = document.body.clientWidth * 0.7;
		$("#"+this.web.divId).attr("style","height:"+height+"px;width:"+width+"px;");
	},	
		
	/* 统计图装载  */	
	load:function(){
		var url = window.monitorAppUrl+"ReportService";
		var barChart;
		if(window.monitorAppUrl == ""){
			barChart = new ECharts(this.web.classPath,this.web.divId);
		}else{
			barChart = new ECharts(this.web.classPath,this.web.divId,url);
		}
			
		if(this.web.param){
			if(this.web.fixParam){
				this.web.param += ","+this.web.fixParam;
			}		
			barChart.setParam(this.web.param);
		}
		barChart.pageOn(echarts);
	},
	
	/* 移除设置信息 */
	remove:function(){
		
	},
	
	/* 刷新方法 */
	refresh:function(){
		this.load();
	}
		
};